package comm.jr.controller;

import comm.jr.entry.Flight_tickets;
import comm.jr.service.Flight_ticketsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController /*替换@RestController=@Controller + @ResponseBody*/
@RequestMapping("/ticket/")
public class Flight_ticketsController {
    @Autowired
    private Flight_ticketsService flight_ticketsService;
    @RequestMapping("getT")
    public ArrayList<Flight_tickets> getticket(Flight_tickets flight_tickets){
        return flight_ticketsService.selectbyflight_id(flight_tickets);
    }
}
